<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<!-- 定义jsp页面demo1，计算并输出1..100的整数和。 -->
		<%int sum = 0; 
		for(int i = 1; i<=100 ; i++){
			sum = sum + i;
		}
		out.println(sum);
		%>
</body>
</html>